package com.ruoyi.bpm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bpm.mapper.BpmClientMapper;
import com.ruoyi.bpm.domain.BpmClient;
import com.ruoyi.bpm.service.IBpmClientService;

/**
 * 客户信息Service业务层处理
 * 
 * @author pjq
 * @date 2025-03-09
 */
@Service
public class BpmClientServiceImpl implements IBpmClientService 
{
    @Autowired
    private BpmClientMapper bpmClientMapper;

    /**
     * 查询客户信息
     * 
     * @param clientId 客户信息主键
     * @return 客户信息
     */
    @Override
    public BpmClient selectBpmClientByClientId(Long clientId)
    {
        return bpmClientMapper.selectBpmClientByClientId(clientId);
    }

    /**
     * 查询客户信息列表
     * 
     * @param bpmClient 客户信息
     * @return 客户信息
     */
    @Override
    public List<BpmClient> selectBpmClientList(BpmClient bpmClient)
    {
        return bpmClientMapper.selectBpmClientList(bpmClient);
    }

    /**
     * 新增客户信息
     * 
     * @param bpmClient 客户信息
     * @return 结果
     */
    @Override
    public int insertBpmClient(BpmClient bpmClient)
    {
        return bpmClientMapper.insertBpmClient(bpmClient);
    }

    /**
     * 修改客户信息
     * 
     * @param bpmClient 客户信息
     * @return 结果
     */
    @Override
    public int updateBpmClient(BpmClient bpmClient)
    {
        return bpmClientMapper.updateBpmClient(bpmClient);
    }

    /**
     * 批量删除客户信息
     * 
     * @param clientIds 需要删除的客户信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmClientByClientIds(Long[] clientIds)
    {
        return bpmClientMapper.deleteBpmClientByClientIds(clientIds);
    }

    /**
     * 删除客户信息信息
     * 
     * @param clientId 客户信息主键
     * @return 结果
     */
    @Override
    public int deleteBpmClientByClientId(Long clientId)
    {
        return bpmClientMapper.deleteBpmClientByClientId(clientId);
    }
}
